from langchain.chat_models import init_chat_model
import os

key = os.getenv("OPENAI_API_KEY")
api_key = str(key)

llm = init_chat_model(
    model="gpt-4o-mini",
    model_provider="openai",
    base_url="https://api.zetatechs.com/v1",
    api_key=api_key
)

msg = llm.invoke("What's the oldest known example of cuneiform")
print(msg.response_metadata)
